﻿using XUCore.Ddd.Domain;
using XUCore.NetCore.FreeSql.Entity;

namespace XUCore.NetCore.FreeSql.Curd
{
    /// <summary>
    /// CURD服务
    /// </summary>
    /// <typeparam name="TEntity">数据库实体</typeparam>
    /// <typeparam name="TDto">返回实体</typeparam>
    public interface ILongCurdService<TEntity, TDto> :
        ICurdService<long, long?, TEntity, TDto>
            where TEntity : EntityFull<long, long?>, new()
            where TDto : class, new()
    {

    }

    /// <summary>
    /// CURD服务
    /// </summary>
    /// <typeparam name="TEntity">数据库实体</typeparam>
    /// <typeparam name="TDto">返回实体</typeparam>
    /// <typeparam name="TCreateCommand">创建命令</typeparam>
    /// <typeparam name="TUpdateCommand">修改命令</typeparam>
    public interface ILongCurdService<TEntity, TDto, TCreateCommand, TUpdateCommand> :
        ICurdService<long, long?, TEntity, TDto, TCreateCommand, TUpdateCommand>
            where TEntity : EntityFull<long, long?>, new()
            where TDto : class, new()
            where TCreateCommand : CreateCommand
            where TUpdateCommand : UpdateCommand<long>
    {
    }
    /// <summary>
    /// CURD服务
    /// </summary>
    /// <typeparam name="TEntity">数据库实体</typeparam>
    /// <typeparam name="TDto">返回实体</typeparam>
    /// <typeparam name="TCreateCommand">创建命令</typeparam>
    /// <typeparam name="TUpdateCommand">修改命令</typeparam>
    /// <typeparam name="TQueryPageCommand">查询分页命令</typeparam>
    public interface ILongCurdService<TEntity, TDto, TCreateCommand, TUpdateCommand, TQueryPageCommand> :
        ICurdService<long, long?, TEntity, TDto, TCreateCommand, TUpdateCommand, TQueryPageCommand>
            where TEntity : EntityFull<long, long?>, new()
            where TDto : class, new()
            where TCreateCommand : CreateCommand
            where TUpdateCommand : UpdateCommand<long>
            where TQueryPageCommand : PageCommand
    {

    }
    /// <summary>
    /// CURD服务
    /// </summary>
    /// <typeparam name="TEntity">数据库实体</typeparam>
    /// <typeparam name="TDto">返回实体</typeparam>
    /// <typeparam name="TCreateCommand">创建命令</typeparam>
    /// <typeparam name="TUpdateCommand">修改命令</typeparam>
    /// <typeparam name="TQueryCommand">查询列表命令</typeparam>
    /// <typeparam name="TQueryPageCommand">查询分页命令</typeparam>
    public interface ILongCurdService<TEntity, TDto, TCreateCommand, TUpdateCommand, TQueryCommand, TQueryPageCommand> :
        ICurdService<long, long?, TEntity, TDto, TCreateCommand, TUpdateCommand, TQueryCommand, TQueryPageCommand>
            where TEntity : EntityFull<long, long?>, new()
            where TDto : class, new()
            where TCreateCommand : CreateCommand
            where TUpdateCommand : UpdateCommand<long>
            where TQueryCommand : ListCommand
            where TQueryPageCommand : PageCommand
    {

    }
}